package com.book.utils;

import java.sql.Connection;

public class DbTest {
    public static void main(String[] args) {
        try {
            Connection conn = DbUtils.getConnection();
            System.out.println("数据库连接成功：" + conn);
            DbUtils.close(null, null, conn);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
